<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设置元素转换中心点</title>
    <style>
       div{
            width: 200px;
            height: 200px;
            background-color: pink;
            margin: 100px auto;
            /* 1.可以跟方位名词 */
            /* transform-origin: left bottom; */
            /* 2. 默认的是 transform-origin:50% 50%; 等价于 transorm-origin: center center; */
            /* 3.可以是px像素 */
            transform-origin: 50px 50px;
            transition: all .9s;
       }

       div:hover{
            transform: rotate(360deg);
       }
    </style>
</head>
<body>
    <div></div>
</body>
</html>